<?php

namespace Entities\Cep;

use Doctrine\Common\Collections\ArrayCollection;

/**
 * @Entity(repositoryClass="\Entities\Cep\BairroRepository")
 * @Table(name="cepbr_bairro")
 */
class Bairro extends \Foxframe\Entity
{
	/**
	 * @Id
	 * @Column(type="integer")
	 */
	protected $id_bairro;

	/**
	 * @Column(type="string", length=50)
	 */
	protected $bairro;

	/**
	 * @ManyToOne(targetEntity="\Entities\Cep\Cidade", cascade={"all"}, fetch="LAZY")
	 * @JoinColumn(name="id_cidade", referencedColumnName="id_cidade", nullable=true)
	 */
	protected $id_cidade;

	public function getBairro()
	{
		return $this->bairro;
	}

	public function getIdBairro()
	{
		return $this->id_bairro;
	}
}